﻿#include "src/MainWindow.h"

#include <QApplication>
#include <QFile>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    // 加载Qss
    QFile styleSheet(":/assets/styles.qss");
    if (styleSheet.open(QIODevice::ReadOnly))
    {
        qApp->setStyleSheet(styleSheet.readAll());
    }
    else
    {
        qWarning("Can't open the style sheet file.");
    }

    MainWindow w;
    w.show();

    return a.exec();
}
